import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import { renderRoutes } from "react-router-config";
import routes from "../share/routes";
import { RootStoreProvider } from "../share/store"

ReactDOM.hydrate(
  <RootStoreProvider>
    <BrowserRouter>{renderRoutes(routes)}</BrowserRouter>
  </RootStoreProvider>,
  document.getElementById("root")
);